﻿@model Isha.Web.Mvc.LogOnModel
@{
    ViewBag.Title = "Log On";
}
<h2>
    Log On</h2>
<p>
    Please enter your user name and password. @Html.ActionLink("Register", "Register")
    if you don't have an account.
</p>
@if (ViewBag.IsValid == false)
{
    <p class="message error">
        There was a problem with your login and/or errors exist in your form</p>
}
<form action="/account/logon" method="post">
<fieldset>
    <legend>Log In to Your Account</legend>
    <div class="editor-label">
        @Html.LabelFor(m => m.UserName)
    </div>
    <div class="editor-field">
        @Html.TextBoxFor(m => m.UserName)
        @* Write any username validation errors to the page *@
        @Html.ValidationMessageFor(m => m.UserName)
    </div>
    <div class="editor-label">
        @Html.LabelFor(m => m.Password)
    </div>
    <div class="editor-field">
        @Html.PasswordFor(m => m.Password)
        @* Write any password validation errors to the page *@
        @Html.ValidationMessageFor(m => m.Password)
    </div>   
    <div class="editor-field">
        @Html.LabelFor(m => m.RememberMe) @Html.CheckBoxFor(m => m.RememberMe)
    </div>
    </li> </ol>
    <p class="form-actions">
        <input type="submit" value="login" title="Login" />
    </p>
    <p>
        <a href="@Href("~/Account/ForgotPassword")">Did you forget your password?</a></p>
</fieldset>
</form>
